<template>
  <div class="home">
    <div>home</div>
  </div>
</template>

<script lang="ts">
import { defineComponent, inject } from 'vue'
import UsersService from '@/service/http/users.service'

export default defineComponent({
  name: 'Home',
  setup() {
    const usersService: UsersService | undefined = inject('usersService')
    usersService!.listUsers().then(res => {
      console.log(res)
    })
  }
})
</script>
